package ro.gateway.aida.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


/**
 *
 * @author Mihai Postelnicu<p>
 *        Message form
 *  e-mail (mihai@ro-gateway.org)<br>
 * (c) 2003 by eRomania Gateway<p>
 */
public class EditMessageForm extends ActionForm {
    // --------------------------------------------------------- Instance Variables
    private String subject;
    private String body;
    private boolean txt;
    private long id;

    // --------------------------------------------------------- Methods

    /**
     * Method reset
     * @param ActionMapping mapping
     * @param HttpServletRequest request
     */
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        txt = true;
        body = "";
        subject = "";
        id = -1;
    }

    /**
     * @return
     */
    public String getBody() {
        return body;
    }

    /**
     * @return
     */
    public String getSubject() {
        return subject;
    }

    /**
     * @param string
     */
    public void setBody(String string) {
        body = string;
    }

    /**
     * @param string
     */
    public void setSubject(String string) {
        subject = string;
    }

    /**
     * @return
     */
    public long getId() {
        return id;
    }

    /**
     * @param l
     */
    public void setId(long l) {
        id = l;
    }
	/**
	 * @return
	 */
	public boolean isTxt() {
		return txt;
	}

	/**
	 * @param b
	 */
	public void setTxt(boolean b) {
		txt = b;
	}

}
